package org.rc.enums;

import lombok.Getter;

/**
 * 设备类型
 */

public enum DevType {

    SXJ(1,"摄像机"),
    XSZJ(2,"审讯主机"),
    SLP(3,"受令屏"),
    SHSP(4,"神火视频"),
    MIC(5,"麦克风");

    @Getter
    private int type;

    @Getter
    private String name;

    DevType(int type, String name){
        this.type = type;
        this.name = name;
    }

    public static String getNameByType(Integer type){
        for(DevType devType : DevType.values()){
            if(devType.getType() == type){
                return devType.getName();
            }
        }
        return null;
    }

}
